#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int a[5];
	for (int i = 0; i <5;i++)
	{
		scanf("%d", &a[i]);
		printf("a[%d]=%d\n", i, a[i]);
	}
	int b[5];
	int i, j;
	for (i = 0,j = sizeof(a) / sizeof(a[0]) - 1; i < 5;i++,j--)
	{
		b[i] = a[j];
	}
	for (i = 0; i < 5; i++)
	{
		printf("b[%d]=%d\n", i,b[i]);
	}
	
	return 0;
}